﻿using System.Collections.Generic;
using X.DataFactory;
using X.Entity;

namespace X.Bll
{
    public sealed class Page
    {
        private static readonly IPage dal = DataAccess.CreatePage();
        public static PageInfo GetPageInfo(string pageKey)
        {
            return dal.GetPageInfo(pageKey);
        }

        public static bool Update(PageInfo pageInfo)
        {
            return dal.Update(pageInfo);
        }

        public static IList<PageInfo> GetPageList()
        {
            return dal.GetPageList();
        }

        public static IList<PageInfo> GetPageList(string[] pageKeys) { return dal.GetPageList(pageKeys); }
    }
}
